import adminListC from "../controllers/adminList";
import advListC from "../controllers/advList";
import loginC from "../controllers/login";
import indexC from "../controllers/index";
export default [
	{
		// 首页一级路由
		path:"/index",
		element:indexC()
	},{
		path:"/index/adminList",
		isSide:true,
		title:"管理员列表",
		element:adminListC()
	},{
		path:"/index/advList",
		isSide:true,
		title:"广告列表",
		element:advListC()
	},{
		path:"/login",
		element:loginC()
	},{
		path:"*",
		element:(req, res, next) => {
			res.redirect('/index/adminList')
		}
	}
]